Real Time Factory Scheduling And Data Collection